package com.openbravo.pos.printer.bean;

import java.util.ArrayList;
import java.util.List;

import com.openbravo.pos.printer.ticket.MyPrinterState;

public class PrintTicketLine {

    protected int fontheight;
    protected int textsize;
    protected List<StyledText> m_atext;
    private int suportType;
    
    public static int SUPORTTYPE_NOCHOICE=0;
    public static int SUPORTTYPE_ProductCom=1;
    public static int SUPORTTYPE_NoProductCom=2;
    public static int SUPORTTYPE_productAttSetInst=3;
	
    /** Creates a new instance of PrinterItemLine */
    public PrintTicketLine(int textsize, int fontheight) {
        this.textsize = textsize;
        this.fontheight = fontheight;
        m_atext = new ArrayList<StyledText>();
    }

    public void addText(int style, String text) {
        m_atext.add(new StyledText(style, text));
    }

    public int getHeight() {
        return fontheight * MyPrinterState.getLineMult(textsize);
    }
    
}
